﻿namespace VisionCloud.Domain.DtoModel.Sys
{
    /// <summary>
    /// 用户登录
    /// </summary>
    public class SysUserLoginDto
    {
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 客户端类型
        /// </summary>
        public TokenTypeEnum TokenType { get; set; } = TokenTypeEnum.Web;
    }

    /// <summary>
    /// 设备登录
    /// </summary>
    public class DeviceLoginDto
    {
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 用户的注册ID
        /// </summary>
        public string RegisterId { get; set; }

        public string YunUserGuid { get; set; }
        public string DogNum { get; set; }
    }

    /// <summary>
    /// 授权信息
    /// </summary>
    public class AccessCode
    {
        /// <summary>
        /// 授权Id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
    }
}